export function formatDate(timestamp) {
    var weeks = ["日", "一", "二", "三", "四", "五", "六"];
    var date = new Date(timestamp);
    var week = weeks[date.getDay()];
    var year = date.getFullYear();
    var month = String(date.getMonth() + 1).padStart(2, "0");
    var day = String(date.getDate()).padStart(2, "0");
    var hour = String(date.getHours()).padStart(2, "0");
    var minute = String(date.getMinutes()).padStart(2, "0");
    var second = String(date.getSeconds()).padStart(2, "0");
    return `${year}-${month}-${day} ${hour}:${minute}:${second} 星期${week}`;
}
